package cn.wolfcode.car.business.domain;

import cn.wolfcode.car.base.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

public class CarPackageAudit {

    public static final Integer STATUS_IN_ROGRESS = 0;//审核中
    public static final Integer STATUS_REJECT = 1;//审核拒绝
    public static final Integer STATUS_PASS = 2;//审核通过
    public static final Integer STATUS_CANCEL = 3;//审核撤销
    private static final long serialVersionUID = 1L;

    /** 主键*/
    private Long id;

    private ServiceItem serviceItem;

    private User  auditor;

    /** 服务单项id*/
    private Long serviceItemId;

    /** 服务单项备注*/
    private String serviceItemInfo;

    /** 服务单项审核价格*/
    private BigDecimal serviceItemPrice;

    /** 流程实例id*/
    private String instanceId;

    /** 创建者*/
    private String creator;

    /** 当前审核人id*/
    private Long auditorId;

    /** 关联流程id*/
    private Long bpmnInfoId;

    /** 备注*/
    private String info;

    /** 状态【进行中0/审核拒绝1/审核通过2/审核撤销3】*/
    private Integer status;


    /** 审核时间*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date auditTime;

    /** 创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getServiceItemId() {
        return serviceItemId;
    }

    public void setServiceItemId(Long serviceItemId) {
        this.serviceItemId = serviceItemId;
    }

    public String getServiceItemInfo() {
        return serviceItemInfo;
    }

    public void setServiceItemInfo(String serviceItemInfo) {
        this.serviceItemInfo = serviceItemInfo;
    }

    public BigDecimal getServiceItemPrice() {
        return serviceItemPrice;
    }

    public void setServiceItemPrice(BigDecimal serviceItemPrice) {
        this.serviceItemPrice = serviceItemPrice;
    }

    public String getInstanceId() {
        return instanceId;
    }

    public void setInstanceId(String instanceId) {
        this.instanceId = instanceId;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Long getAuditorId() {
        return auditorId;
    }

    public void setAuditorId(Long auditorId) {
        this.auditorId = auditorId;
    }

    public Long getBpmnInfoId() {
        return bpmnInfoId;
    }

    public void setBpmnInfoId(Long bpmnInfoId) {
        this.bpmnInfoId = bpmnInfoId;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public ServiceItem getServiceItem() {
        return serviceItem;
    }

    public void setServiceItem(ServiceItem serviceItem) {
        this.serviceItem = serviceItem;
    }

    public User getAuditor() {
        return auditor;
    }

    public void setAuditor(User auditor) {
        this.auditor = auditor;
    }
}